package org.locker.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.locker.domain.Withdraw;
import org.locker.domain.vo.WithdrawVo;
import org.locker.domain.bo.WithdrawBo;
import org.locker.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Collection;
import java.util.List;

/**
 * 提现Service接口
 *
 * @author winnie
 * @date 2023-10-11
 */
public interface IWithdrawService extends IService<Withdraw>{

    /**
     * 查询提现
     */
    WithdrawVo queryById(Long withdrawId);

    /**
     * 查询提现列表
     */
    Page<WithdrawVo> queryPageList(WithdrawBo bo, PageQuery pageQuery);

    /**
     * 查询提现列表
     */
    List<WithdrawVo> queryList(WithdrawBo bo);

    /**
     * 新增提现
     */
    Long insertByBo(WithdrawBo bo);

    /**
     * 修改提现
     */
    Boolean updateByBo(WithdrawBo bo);

    /**
     * 校验并批量删除提现信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 提现-V2
     * @param userId
     * @param orderNo
     */
    Long withdrawV2(Long userId,String orderNo,String withDrawType);

    Long withdrawBySystem(Long userId,String orderNo,String withDrawType);
}
